package com.elmcode.server.controller.admin;

import com.elmcode.server.service.EvaluateService;
import com.elmcode.server.utils.Result;
import com.elmcode.server.vo.EvaluateVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("admin/feedback")
public class FeedbackController {

    @Autowired
    EvaluateService evaluateService;

    @GetMapping
    public Result list(@RequestParam Map<String,Object> params){

        List<EvaluateVo> data = evaluateService.queryPage(params);
        return Result.ok("查询成功",data);

    }



}
